{%include file="header.html"%}
<form action="{%$formAction%}" method="POST" {%if $is_validator%} id="adminform" onsubmit="return Validator.Validate(this)" {%/if%}>
<table width="100%" cellspacing="0" border="0" class="adminform">
  <tr>
    <th>{%$systemLang.parentResouces%}</th>
  </tr>
  <tr>
    <td><select name="acl[top_id]">
        <option value="0">{%$systemLang.module%}</option>
        {%foreach from=$aclTree item="tmp"%}
        <option value="{%$tmp.acl_id%}" {%if $aclData.top_id==$tmp.acl_id%}selected{%/if%}>
        {%$tmp.acl_name%}
        {%/foreach%}
      </select>
    </td>
  </tr>
  <tr>
    <th>{%$systemLang.resourcesName%}</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_name]" class="text" value="{%$aclData.acl_name%}" dataType='Require' msg='{%$systemLang.resouceNameNotEmpty%}' /></td>
  </tr>
  <tr>
    <th>{%$systemLang.resoucesMark%}</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_value]" class="text" value="{%$aclData.acl_value%}"  dataType='Custom' regexp='[a-z_]+' msg='{%$systemLang.resouceNameNotEmtpyEn%}'/></td>
  </tr>
  <tr>
    <th>{%$systemLang.subMethod%}</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_children]" class="text" value="{%$aclData.acl_children%}"  />
  </tr>
  <tr>
    <th>{%$systemLang.resoucesDesc%}</th>
  </tr>
  <tr>
    <td><input type="text" name="acl[acl_desc]" class="text" value="{%$aclData.acl_description%}" /></td>
  </tr>
  <tfoot>
  <tr>
  	<td><input type="submit" name="submit" value="{%$systemLang.submit%}" class="button" /></td>
  </tr>
  </tfoot>
</table>
<input type="hidden" name="acl_id" value="{%$aclData.acl_id%}" />
</form>